package com.dgut.lotterySystem.service;

import com.dgut.lotterySystem.controller.param.CreateActivityParam;
import com.dgut.lotterySystem.controller.param.PageParam;
import com.dgut.lotterySystem.service.dto.ActivityDetailDTO;
import com.dgut.lotterySystem.service.dto.ActivityInfoDTO;
import com.dgut.lotterySystem.service.dto.CreateActivityDTO;
import com.dgut.lotterySystem.service.dto.PageInfoListDTO;

public interface IActivityService {
    CreateActivityDTO createActivity(CreateActivityParam param);

    PageInfoListDTO<ActivityInfoDTO> findActivityInfoList(PageParam param);

    ActivityDetailDTO getActivityDetail(Long activityId);

    /**
     * 缓存活动详细信息（先获取表的信息数据）
     * @param activityId
     */
    void  cacheActivity(Long activityId);

}
